package com.mt;

import com.mt.api.core.config.property.ConfigProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 开启审计功能 -> @EnableJpaAuditing
 *
 */
@EnableAsync
@SpringBootApplication
/**
 * mybatis包扫描
 */
@MapperScan(basePackages = {"com.mt.api.modules.mapper", "com.mt.log.mapper"})
@Import(ConfigProperties.class)
@EnableScheduling
public class EsApplication {

    public static void main(String[] args) {
        SpringApplication.run(EsApplication.class, args);
    }

}
